/*
 * independent method
 */
function Support(){}


/*
 * Date 18/08/2013
 * copy from http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/
 */
Support.getStyle= function(oElm, strCssRule){
	var strValue = "";
	if(document.defaultView && document.defaultView.getComputedStyle){
		strValue = document.defaultView.getComputedStyle(oElm, "").getPropertyValue(strCssRule);
	}
	else if(oElm.currentStyle){
		strCssRule = strCssRule.replace(/\-(\w)/g, function (strMatch, p1){
			return p1.toUpperCase();
		});
		strValue = oElm.currentStyle[strCssRule];
	}
	return strValue;
}

Support.goToCategory = function(categoryId) {
	window.location.href = '/show_room/' + categoryId
};